<%@ page language="java" pageEncoding="UTF-8"%>
<%request.setAttribute("ctx",request.getContextPath()); %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css">
<title>管理页面</title>

<script type="text/javascript">
	function logout(){
	if (confirm("您确定要退出控制面板吗？"))
	loginOut();
	return false;
}
function showsubmenu(sid) {
	var whichEl = eval("submenu" + sid);
	var menuTitle = eval("menuTitle" + sid);
	if (whichEl.style.display == "none"){
		eval("submenu" + sid + ".style.display=\"\";");
	}else{
		eval("submenu" + sid + ".style.display=\"none\";");
	}
}

// add for admin
var lastObj
function showlinks(obj) {

  if(lastObj){
    if (lastObj.style.display=="none") lastObj.style.display="";else lastObj.style.display="none"
  }
  obj=obj.parentElement.nextSibling
  if (obj.style.display=="none") obj.style.display="";else obj.style.display="none"
  lastObj=obj

}
function changePassword(){
	window.open('${ctx}/admin/system/change_password.jsp', "change_pwd",  "width=800,height=600,top=100,left=120,scrollbars=auto");
}
function loginOut(){
	window.parent.location.href = '${ctx}/admin/loginOut';
}

</script>
<base target="main">
<link href="${ctx}/images/skin.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="0">
	<form name="form1" method="post" action="">
		<table width="100%" height="64" border="0" cellpadding="0"
			cellspacing="0" class="admin_topbg">
			<tr>
				<!-- Commented by Doug@0822, since the name inside is NOT correct -->
				<%-- 
				<td width="50%" height="64"><img src="${ctx}/images/logo.gif"
					width="262" height="64"></td>
					 --%>
				<td width="50%" valign="top"><table width="100%" border="0"
						cellspacing="0" cellpadding="0">
						<tr>
							<!-- align="center" added by Doug@0822 -->
							<td width="46%" height="38" class="admin_txt" align="center">管理员：<b>${User.userName}</b>
								您好,感谢登陆使用！
							</td>
							<%-- 
        <td width="25%" align="left"><a href="#" target="_self" onClick="javascript:changePassword();"><img src="${ctx}/images/out.gif" alt="修改密码" width="46" height="20" border="0"></a></td>
        --%>
							<td width="25%"><a href="#" target="_self"
								onClick="javascript:logout();"><img
									src="${ctx}/images/out.gif" alt="安全退出" width="46" height="20"
									border="0"></a></td>
							<td width="4%">&nbsp;</td>
						</tr>
						<tr>
							<td height="19" colspan="3">&nbsp;</td>
						</tr>
					</table></td>
			</tr>
		</table>
	</form>
</body>

</html>
